package controller

import (
	"common/helper"
	"github.com/valyala/fasthttp"
	"member/model"
)

type CsController struct{}

func (that *CsController) List(ctx *fasthttp.RequestCtx) {

	//field := string(ctx.QueryArgs().Peek("fields"))
	//
	//fields := strings.SplitN(field, ",", 4)
	data, err := model.CsList()
	if err != nil {
		helper.Print(ctx, false, err.Error())
		return
	}

	helper.Print(ctx, true, data)
}
